package com.peiqi.oneisall.controller;

import com.peiqi.oneisall.domain.User;
import com.peiqi.oneisall.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/users")
public class UserController {
    @Resource
    UserService userService;
    @GetMapping
    public String getUsers(){
        User user = userService.getUsers();
        return "user";
    }
}
